package com.chukun.gateway.core.parallel.disruptor;

import com.lmax.disruptor.EventTranslatorOneArg;

/**
 * @author chukun
 * @version 1.0.0
 * @description 存储数据
 * @createTime 2023/12/23 20:21
 */
public class BufferHolderEventTranslator<E>  implements EventTranslatorOneArg<BufferHolder<E>, E> {

    @Override
    public void translateTo(BufferHolder<E> holder, long l, E e) {
        holder.setValue(e);
    }
}
